<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>{$app_name}下载</title>
    <!-- Bootstrap -->
    <link  href="https://lib.baomitu.com/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
	

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
	
	

	
  </head>
  <style type="text/css">
  	#footer>p {
  		text-align: center;
  		line-height: 20px;
  		margin: 0;
  	}
  	
  	#footer>p>a {
  		text-decoration: none;
  		color: #000;
  	}
  	
  	#footer>p>a:hover {
  		text-decoration: none;
  		color: #000;
  	}
	.col-xs-4{
		padding: 0;
	}
  </style>
  <body>
	  <div class="col-xs-12">
	  	<div class="container">
			<div class="col-xs-4 col-xs-offset-4" style="padding-top: 20vh;">
				<img src="{$app_logo|default='/logo.png'}" style="width: 100%;">
			</div>
			<div class="col-xs-12">
				<p style="text-align: center;color: #F96A0C; font-size: 26px;margin-top: 10px;">{$app_name}</p>
			</div>
			<div class="col-xs-6 col-xs-offset-3" style="padding-top: 20px;">
				<button onclick="open1()" type="button" style="width: 100%;background-color: #F96A0C;border: none;line-height: 36px;color: #fff;border-radius: 10px;">Android下载</button>
			</div>
	  		
	  	</div>
	  </div>
	<footer id="footer" class="col-xs-12" style="margin-top: 30vh">
		<p><span>© 2022 {$app_name} </span><br/><span id='li'  style="color: red;">注意：微信不支持直接下载，请点击右上方三个点，用浏览器打开</span></p>
	</footer>
    <script src="https://lib.baomitu.com/jquery/1.12.4/jquery.min.js" ></script>
    <script src="https://lib.baomitu.com/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
	<script type="text/javascript">
		var ua = navigator.userAgent.toLowerCase();
		var isWeixin = ua.indexOf('micromessenger') != -1;
		if (isWeixin) {
		    alert('微信不支持直接下载，请点击右上方三个点，用浏览器打开');
		}else{
		    document.getElementById('li').style.display='none'
		}
		
		function open1(){
			if (isWeixin) {
			    alert('微信不支持直接下载，请点击右上方三个点，用浏览器打开');
			}else{
				window.open('/update/update_{$app_v}.apk')
			}
		}
	</script>
  </body>
</html>